package com.bwie.domain;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @className: Time
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 * @date: 2025/10/8 9:45
 */
@Component
public class Time {

    @Scheduled(cron = "* * * * * ? *")
    public void executeTask() {
        // 每秒执行的任务逻辑
        System.out.println("任务执行时间：" + new java.util.Date());
    }
}
